<div class="row">
	<div class="col-sm-12">
		<div class="form-group">
		   <div class="col-sm-12 col-sm-offset-1">

		    	<button type="submit" class="btn  btn-labeled btn-default" name="edit_back" value="<?php echo ($edit->post_status == 8)?0:$edit->post_status; ?>"><span class="btn-label btn-label-left"><i class="fa fa-level-down fa-rotate-90"></i></span> Quay lại</button>

				<button type="submit" class="btn btn-primary" name="edit[post_status]" value="<?php echo ($edit->post_status == 8)?0:$edit->post_status; ?>"><i class="fa fa-save"></i>  Lưu tin</button>

				<?php
					switch (@$edit->post_status) {
						case 3:
							$return_status = 4;
							break;
						case 2:
							$return_status = 5;
							break;
						case 1:
							$return_status =6;
							break;
						
						default:
							$return_status = 0;
							break;
					}
				if($return_status>0 && has_permission($this->post->get_info_status($return_status, 'permission_edit'))) {
					?>
					<button type="submit" class="btn btn-inverse" name="edit[post_status]" value="<?php echo $return_status;?>"><i class="fa fa-share-square-o"></i>  Trả lại tin</button>
				 <?php } ?>

				<?php if(has_permission($this->post->get_info_status(2, 'permission_edit'))) {
					?>
					<button type="submit" class="btn btn-info" name="edit[post_status]" value="2"><i class="fa fa-angle-double-up"></i>  Gửi tin</button>
				 <?php } ?>
				
				<?php if(has_permission($this->post->get_info_status(3, 'permission_edit'))) {
					?>
					<button type="submit" class="btn btn-info" name="edit[post_status]" value="3"><i class="fa fa-arrow-up"></i>  Duyệt tin</button>
				 <?php } ?>

				<?php if(has_permission($this->post->get_info_status(1, 'permission_edit'))) {
					?>
					<button type="submit" class="btn btn-info" name="edit[post_status]" value="1"><i class="fa fa-level-up"></i>  Đăng tin</button>
				 <?php } ?>
				
				
		   </div>
		</div>
	</div>
</div>
